.layer-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 35%);
}

.layer-mask {
  width: 100vw;
  height: 100vh;
  background: transparent;
}
.content {
  flex: 1;
  height: 0;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  flex: 3rem 0 0;
  .el-button {
    --el-button-size: 2rem !important;
  }
}

.layer-win {
  display: flex;
  position: fixed;
  top: 25vh;
  left: 25vw;
  width: 50vw;
  height: 50vh;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  -moz-user-select: none;
  /*火狐*/
  -webkit-user-select: none;
  /*webkit浏览器*/
  -ms-user-select: none;
  /*IE10*/
  -khtml-user-select: none;
  /*早期浏览器*/
  user-select: none;

  .layer-main-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    width: 0;
  }

  .layer-header {
    position: relative;
    flex: 2.5rem 0 0;
    height: 0;
    font-size: 1rem;
    line-height: 2.5rem;
    padding: 0 10px 0 20px;
    cursor: move;
    color: var(--font-color);
    background-color: var(--float-dialog--title-color);

    p {
      margin: 0;
      line-height: 2.5rem;
      display: inline-block;
      max-width: calc(100% - 100px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: left;
    }

    &:after {
      content: "";
      position: absolute;
      width: 100%;
      height: 1px;
      background: var(--border-color);
      left: 0;
      bottom: 0;
    }
  }

  .layer-fn-btns {
    float: right;
    height: 100%;
    display: flex;
    align-items: center;

    i {
      cursor: pointer;
      margin: 0 5px;

      img {
        width: 25px;
        height: 25px;
        vertical-align: middle;
      }
    }
  }

  .layer-content {
    position: relative;
    width: 100%;
    flex: 1;
    height: 0;
    display: flex;
    flex-direction: column;

    .layer-content-mask {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 100;
      width: 100%;
      height: 100%;
    }
    .has-bottom-dialog {
      > .el-scrollbar {
        .el-scrollbar__view {
          display: flex;
          flex-direction: column;
        }
      }
    }
  }

  .scale-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 101;
    width: 18px;
    height: 18px;
    cursor: se-resize;

    &:after {
      content: "";
      position: absolute;
      bottom: 2px;
      right: 2px;
      border-top: 6px solid #656565;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      transform: translate(36%, 36%) rotate(-45deg);
    }
  }
}
